#define _CRT_SECURE_NO_WARNINGS 1
class Solution {
public:
    int treeDepth(TreeNode* root) {
        if (!root)return 0;
        return 1 + max(treeDepth(root->right), treeDepth(root->left));
    }
};